package leetcode.code149;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution149 implements IDebug {

	public abstract int maxPoints(int[][] points);

	@Override
	public void debug1() {
		String str1 = "[[1,1],[2,2],[3,3]]";
		int e = 3;
		debug(str1, e);
	}

	private void debug(String str1, int e) {
		int[][] points = HelpDebug.str2array1(str1);
		int r = this.maxPoints(points);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String str1 = "[[1,1],[3,2],[5,3],[4,1],[2,3],[1,4]]";
		int e = 4;
		debug(str1, e);
	}

	@Override
	public void debug3() {
		String str1 = "[[1,0],[0,0]]";
		int e = 2;
		debug(str1, e);
	}
	public void debug5() {
		String str1 = "[[0,0],[1,-1],[1,1]]";
		int e = 2;
		debug(str1, e);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
